home *** CD-ROM | disk | FTP | other *** search
/ OpenGL Superbible (2nd Edition) / OpenGL SuperBible e2.iso / tools / GLUT-3.7 / LIB / GLUT / glut_keyup.c < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-12  |  774 b   |  30 lines

  1.  
  2. /* Copyright (c) Mark J. Kilgard, 1997. */
  3.  
  4. /* This program is freely distributable without licensing fees
  5.    and is provided without guarantee or warrantee expressed or
  6.    implied. This program is -not- in the public domain. */
  7.  
  8. #include <stdlib.h>
  9.  
  10. #include "glutint.h"
  11.  
  12. /* CENTRY */
  13. void APIENTRY
  14. glutKeyboardUpFunc(GLUTkeyboardCB keyboardUpFunc)
  15. {
  16.   __glutChangeWindowEventMask(KeyReleaseMask,
  17.     keyboardUpFunc != NULL || __glutCurrentWindow->specialUp != NULL);
  18.   __glutCurrentWindow->keyboardUp = keyboardUpFunc;
  19. }
  20.  
  21. void APIENTRY
  22. glutSpecialUpFunc(GLUTspecialCB specialUpFunc)
  23. {
  24.   __glutChangeWindowEventMask(KeyReleaseMask,
  25.     specialUpFunc != NULL || __glutCurrentWindow->keyboardUp != NULL);
  26.   __glutCurrentWindow->specialUp = specialUpFunc;
  27. }
  28.  
  29. /* ENDCENTRY */
  30.